get records from Sunday to Sunday laravel

208

get records from Sunday to Sunday laravel -

$now = Carbon::now();
$weekStartDate = $now->startOfWeek()->format('Y-m-d H:i');
$weekEndDate = $now->endOfWeek()->format('Y-m-d H:i');

Comments

Submit
0 Comments